package luj.tool.jnproxyan.proxy.util.data.load.internal;

import org.springframework.stereotype.Component;

@Component
public class JsonValueFixer {

  Object fix(Object jsonVal, Class<?> codeType) {
    if (codeType == Long.class) {
      return ((Number) jsonVal).longValue();
    }

    return jsonVal;
  }
}
